package com.bw.controller;

import com.alibaba.fastjson2.JSONObject;
import com.bw.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController

public class OrderController {
    @Autowired
    OrderService orderService;
    @RequestMapping("/total")
public Object total(String newDate){
        List<Map>list = orderService.total("2023-01-06");
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("status","");
        jsonObject.put("data","");
        return 11;
}
    @RequestMapping("/amountbi")
    public Object amountbi(){
        return 11;
    }
    @RequestMapping("/count")
    public Object count(){
        return 11;
    }
    @RequestMapping("/orderbi")
    public Object orderbi(){
        return 11;
    }
    @RequestMapping("/amount")
    public Object amount(){
        return 11;
    }
    @RequestMapping("/max")
    public Object max(){
        return 11;
    }
    @RequestMapping("/orderamount")
    public Object orderamount(){
        return 11;
    }
}
